<?php
/**
 * User: aka
 * Time: 19:39
 */

namespace app\tenno\model;

use think\Model;

class Users extends Model
{
    public function scopeUserInfo($query, $userId)
    {
        $query->where('id', '=', $userId)->field('email, game_id, game_state, id');
    }
}